package singleton.demo1;

public class MyRunnable implements Runnable{
    @Override
    public synchronized void run() {
        XieFactory xieFactory = XieFactory.getInstance();
        System.out.println(Thread.currentThread().getName()+"获取到的鞋厂为:"+xieFactory);
    }
}
